# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-hijri-converter
pkgver=2.2.1
pkgrel=1
pkgdesc="Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"
url="https://github.com/dralshehri/hijri-converter"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/mhalshehri/hijri-converter/archive/v$pkgver/hijri-converter-v$pkgver.tar.gz"
builddir="$srcdir/hijri-converter-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
26e7d00de4768a03d15cbcf769500e9ae3b2b98525f530a8c5a7c9b65ace80014acd68d53f0b12038ab11ad3f0cf20c2ddb0982437a61799c82ffd4520c56555  py3-hijri-converter-2.2.1-2.tar.gz
"
